package chenji.dailykit.ItemEditor;

import java.util.HashSet;

import org.bukkit.entity.Player;

import chenji.dailykit.Main;
/**
 * @author ChenJi Copyright (c) 2016 ChenJi. All rights reserved.
 */
public class ItemEditorEventManager {
	private final HashSet<Player> ChatListener = new HashSet<Player>();

	public void getPlayerChat(Player p) {
		if (this.ChatListener.contains(p)) {
			return;
		} else {
			this.ChatListener.add(p);
		}
	}
	public boolean setPlayerChat(Player p,String m){
		this.ChatListener.remove(p);
		return Main.getItemEditorManager().setPlayerChat(p,m);
	}
}
